﻿<phone:PhoneApplicationPage 
    x:Class="SensorJanken.PageJanken"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot は、すべてのページ コンテンツが配置されるルート グリッドです-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel は、アプリケーション名とページ タイトルを格納します-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="Wi-Fiじゃんけん" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="グループ名 :" Margin="9,-7,0,0" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>

        <!--ContentPanel - 追加コンテンツをここに入力します-->
        <Canvas x:Name="canvasBattleField" Grid.Row="1" Margin="12,12,12,12">
            <Button Name="buttonCheckPlayers" Opacity="0.5" Content="参加者チェック" Canvas.Left="0" Canvas.Top="490" Click="buttonCheckPlayers_Click" />
            <CheckBox x:Name="cbManual" Opacity="0.5" FontFamily="Georgia" Canvas.Left="280" Canvas.Top="490" Content="マニュアル" Checked="cbManual_Checked" Unchecked="cbManual_Unchecked" />
            <Image x:Name="imageGuu" Source="GuuWP.png" Canvas.Left="75" Canvas.Top="300"/>
            <Image x:Name="imageChoki" Source="ChokiWP.png" Canvas.Left="50" Canvas.Top="100"/>
            <Image x:Name="imagePah" Source="PahWP.png" Canvas.Left="30" Canvas.Top="100"/>
            <Rectangle x:Name="manualGuu" Canvas.Top="566" Canvas.Left="30" Width="96" Height="70" Opacity="0.3">
                <Rectangle.Fill>
                    <ImageBrush ImageSource="GuuWP.png"/>
                </Rectangle.Fill>
            </Rectangle>
            <Rectangle x:Name="manualChoki" Canvas.Top="540" Canvas.Left="180" Width="80" Height="96" Opacity="0.3">
                <Rectangle.Fill>
                    <ImageBrush ImageSource="ChokiWP.png"/>
                </Rectangle.Fill>
            </Rectangle>
            <Rectangle x:Name="manualPah" Canvas.Top="540" Canvas.Left="330" Width="96" Height="96" Opacity="0.3">
                <Rectangle.Fill>
                    <ImageBrush ImageSource="PahWP.png"/>
                </Rectangle.Fill>
            </Rectangle>
        </Canvas>
        <TextBlock x:Name="tbStatus" FontSize="72" Text="Ready" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top"/>
        <TextBlock x:Name="tbOtherHands" FontSize="20" Grid.Row="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,8,8"/>
    </Grid>
 
    <!--ApplicationBar の使用法を示すサンプル コード-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
